<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//接收用户输入的字母，并判断是不是元音字母。
			let zm = window.prompt("请输入一个字母");
			if(zm == "a"|| zm == "A"){
				console.log("元音字母");
				document.write("元音字母:" + zm);
			}else if(zm == "e"|| zm == "E"){
				console.log("元音字母");
				document.write("元音字母:" + zm);
			}else if(zm == "i"|| zm == "I"){
				console.log("元音字母");
				document.write("元音字母:" + zm);
			}else if(zm == "o"|| zm == "O"){
				console.log("元音字母");
				document.write("元音字母:" + zm);
			}else if(zm == "u"|| zm == "U"){
				console.log("元音字母");
				document.write("元音字母:" + zm);
			}else{
				console.log("不是元音字母");
			}
				
		</script>
	</body>
</html>
